<%@ page language="java" import="java.util.*,com.king.cms.db.*,com.king.cms.common.*" pageEncoding="utf-8"%>
<%@ include file="/hotel/include/css.jsp"%><%-- /*包含css样式表*/ --%>
 <%
   int pow=0;
   QueryPage query = (QueryPage)request.getAttribute("query");
   String pageStr = query.getPageStr();
     List dataList=new ArrayList();
  if(query.getDataList() != null)
     dataList=query.getDataList();
 %> 
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; ">
<title>在线用户列表</title>
</head>

<body  leftmargin="0" topmargin="0">
<form name="form1" method="post" action="online.jsp">
<script language="JavaScript">
 
</script> 
<center>
<table border="0" cellpadding="0" cellspacing="0"  width="98%" height="2" >
    <tr>
      <td width="9" height="1">
      <td  height="1">
      <p align="center"><b>历史列表 </b><!-- [<a href="online.jsp?doType=clearAll">清空所有用户</a>]--></td>
      <td width="9" height="1">
      </td>
    </tr>
  </table>
<table width ="98%"  cellpadding="4" cellspacing="1"  class="bg_table" >
    <tr class="top_td">
    <td width="5%">
    序号</td>
    <td>
    用户帐号</td>
    <td>
    姓名</td>
    <td>
    职务</td> 
    <td>
    登录时间</td>      
  </tr> 
  <%if(null != dataList &&dataList.size()>0) {
     for(int i = 0;i<dataList.size();i++){
             Map obj = (Map)dataList.get(i);
  %>
  <tr  <%if(i%2==1){%> class="td2" onMouseOver="this.className='td5'" onMouseOut="this.className='td2'"<%} else {%>class="td3" onMouseOver="this.className='td5'" onMouseOut="this.className='td3'" <%}%>>
	<td align="center" height="20"  ><%=(query.getCurrentPageNo()-1)*10+(i+1) %>
     </td>
	<td align="center" height="20"  ><%=StringUtil.NULL2Blank(obj.get("UID")+"") %>
    </td>
	<td align="center" height="20"><%=StringUtil.NULL2Blank(obj.get("USER_NAME")+"") %>
     </td>
	<td align="center" height="20" ><%=StringUtil.NULL2Blank(obj.get("USER_DUTY")+"") %>
    </td> 
	<td align="center" height="20"  ><%=StringUtil.NULL2Blank(obj.get("LOG_TIME")+"") %>
     </td>
	</tr>
	<%}} %>
  
  
</form>
 <table border="0" cellpadding="0" cellspacing="0"  width="98%" height="27" class="top_td" colspan="8" >
    <tr>
      <td width="100" height="27" >
      <td width="100%" height="27" >
    
		  <%=pageStr%>
	  </td>
      <td width="9" height="27">
      </td>
    </tr>
  </table>

</body>
</html>
<%@ include file="/hotel/pow.jsp"%>